import { createRouter,createWebHashHistory } from "vue-router";


const router=createRouter({
history:createWebHashHistory(),
routes:[
 {path:'/',redirect:'/home',component:()=>import('../views/home/home.vue'),  meta: { ishidden:false } },
 {path:'/home',component:()=>import('../views/home/home.vue'),  meta: { ishidden: false } },
 {path:'/order',component:()=>import('../views/order/order.vue'),  meta: { ishidden: false } },
 {path:'/message',component:()=>import('../views/message/message.vue'),  meta: { ishidden: false } },
 {path:'/favor', component:()=>import('../views/favor/favor.vue'),  meta: { ishidden: false } },
 {
    path:'/city', 
    component:()=>import('../views/city/city.vue'),
    meta:{
        ishidden:true,
    }
},
{
    path:'/search',
    component:()=>import('../views/search/search.vue'),
    meta:{
        ishidden:true,
    }
},
{
    path:'/detail/infos/:id',
    component:()=>import('../views/detail/detail.vue'),
    meta:{
        ishidden:true,
    }
}

]
})

export default router